#include<stdio.h>
int main()
{
	struct stu
	{
		long int num;
		char name[20];
		float score;
	}stu1,stu2;
	scanf("%d%s%f",&stu1.num,stu1.name,&stu1.score);
	scanf("%d%s%f",&stu2.num,stu2.name,&stu2.score);
	printf("The higher score is:\n");
	if(stu1.score>stu2.score)
	printf("%d %s %.2f\n",stu1.num,stu1.name,stu1.score);
	else if(stu1.score<stu2.score)
	printf("%d %s %.2f\n",stu2.num,stu2.name,stu2.score);
	else{
		printf("%d %s %.2f\n",stu1.num,stu1.name,stu1.score);
		printf("%d %s %.2f\n",stu2.num,stu2.name,stu2.score);
	}
 } 
